:root {
  --ivory: #ffffff;
  --cream: #ffffff;
  --sage: #6f9a82;
  --sage-light: #b9d5c8;
  --sage-dark: #3f6f58;
  --deep: #22362f;
  --charcoal: #435650;
  --stone: #748883;
  --blue: #4d83a8;
  --blue-light: #d9ecf6;
  --gold: var(--blue);
  --gold-light: var(--blue-light);
  --bg-color: #ffffff;
  --mist: rgba(77,131,168,0.1);
  --font-heading: 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Jost', 'Segoe UI', Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.6;
  background: var(--bg-color);
  color: var(--deep);
  overflow-x: hidden;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.intro-screen {
  position: fixed;
  inset: 0;
  z-index: 130;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 1.5rem;
  background: #ffffff;
  cursor: pointer;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  transition: opacity 0.7s ease, visibility 0.7s ease;
}

.intro-screen.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.intro-logo-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  will-change: opacity, transform;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
}

.intro-bg-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, rgba(77,131,168,0.16), transparent 22%),
              radial-gradient(circle at 50% 68%, rgba(168,217,226,0.1), transparent 28%);
  opacity: 0;
  transform: scale(0.94);
  pointer-events: none;
  animation: introGlow 2s ease 0.1s forwards;
}

.intro-logo-shell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: min(260px, 58vw);
}

.intro-logo {
  width: 100%;
  display: block;
  filter: drop-shadow(0 16px 32px rgba(44,53,45,0.12));
  opacity: 0;
  transform: scale(0.95) translateY(8px);
  animation: introLogoIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards,
             introLogoPulse 4s ease-in-out 2.3s infinite alternate;
}

.intro-logo-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 2px;
  background: linear-gradient(90deg, rgba(77,131,168,0), rgba(77,131,168,0.95), rgba(109,149,114,0));
  transform: scaleX(0);
  transform-origin: left;
  opacity: 0.85;
  animation: introLineIn 0.9s ease 0.25s forwards;
}

.intro-title,
.intro-subtitle {
  opacity: 0;
  transform: translateY(10px);
  will-change: opacity, transform;
}

.intro-title {
  font-family: var(--font-heading);
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 500;
  letter-spacing: 0.03em;
  color: var(--deep);
  text-align: center;
  max-width: min(740px, 88vw);
  animation: introTitleIn 0.7s ease 0.8s forwards;
}

.intro-subtitle {
  margin-top: 0.18rem;
  font-family: var(--font-body);
  font-size: clamp(0.95rem, 2.4vw, 1.1rem);
  letter-spacing: 0.18em;
  color: var(--sage-dark);
  text-transform: uppercase;
  opacity: 0;
  animation: introSubtitleIn 0.6s ease 1.5s forwards;
}

@keyframes introGlow {
  from { opacity: 0; transform: scale(0.96); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes introLogoIn {
  0% { opacity: 0; transform: scale(0.95) translateY(8px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

@keyframes introLogoPulse {
  from { transform: scale(1); }
  to { transform: scale(1.02); }
}

@keyframes introLineIn {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

@keyframes introTitleIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes introSubtitleIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── NAV ─── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.9rem 3rem;
  min-height: 86px;
  background: rgba(255, 255, 255, 0.94);
  -webkit-backdrop-filter: blur(18px);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(34,54,47,0.12);
  box-shadow: 0 3px 14px rgba(34,54,47,0.08);
}

.nav-logo {
  display: flex; align-items: center; gap: 0.75rem;
  cursor: default;
}

.nav-brand-img {
  height: 45px; /* Adjust this value if you want the logo bigger or smaller */
  width: auto;
  object-fit: contain;
}

.nav-brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.brand-main {
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--deep);
}

.brand-sub {
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--sage-dark);
}

.nav-links {
  display: flex; gap: 2.5rem; list-style: none;
}
.nav-links a {
  font-size: 0.72rem; letter-spacing: 0.22em; text-transform: uppercase;
  color: var(--charcoal); font-weight: 500; text-decoration: none;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--sage-dark); }

.nav-cta {
  font-size: 0.7rem; letter-spacing: 0.22em; text-transform: uppercase;
  padding: 0.6rem 1.5rem;
  border: 1px solid var(--sage-dark);
  color: var(--sage-dark);
  background: transparent;
  cursor: pointer;
  transition: all 0.3s;
  font-family: var(--font-body);
}
.nav-cta:hover { background: var(--sage-dark); color: var(--ivory); }

/* ─── HERO ─── */
.hero {
  min-height: 100vh;
  min-height: 100svh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative; overflow: hidden;
  padding: 10rem 2rem 3rem;
  text-align: center;
  z-index: 1; /* Establishes a stacking context for background elements */
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -3;
  background: url('../../assets/office2.jpg') center 43% / cover no-repeat;
  filter: saturate(1.04) contrast(1.08);
  transform: scale(1.01);
}

.hero-video {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  z-index: -2;
}

.hero-bg {
  position: absolute; inset: 0;
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(255,255,255,0.2), rgba(255,255,255,0.48) 30%, rgba(255,255,255,0.48) 70%, rgba(255,255,255,0.18)),
    linear-gradient(180deg, rgba(255,255,255,0.42) 0%, rgba(255,255,255,0.12) 38%, rgba(255,255,255,0.48) 100%);
} 

/* Animated particles */
.particles { display: none; }
.particle {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(77,131,168,0.34), transparent);
  will-change: transform, opacity;
  -webkit-transform: translateZ(0);
  transform: translateZ(0);
  animation: floatUp linear infinite;
}

@keyframes floatUp {
  0% { transform: translateY(100vh) scale(0); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 0.3; }
  100% { transform: translateY(-10vh) scale(1); opacity: 0; }
}

.hero-eyebrow {
  font-size: 0.68rem; letter-spacing: 0.28em; text-transform: uppercase;
  color: var(--sage-dark); margin-bottom: 1.5rem; font-weight: 500;
  opacity: 0; animation: fadeUp 0.8s 0.3s forwards;
}

.hero-title {
  font-family: var(--font-heading);
  font-size: clamp(3.4rem, 6.3vw, 5.4rem);
  font-weight: 400; line-height: 1.05;
  color: #17382d;
  text-shadow: 0 2px 10px rgba(255, 255, 255, 0.8), 0 2px 3px rgba(10, 38, 28, 0.35);
  margin-bottom: 1.1rem;
  max-width: min(980px, 92vw);
  will-change: opacity, transform;
  opacity: 0; animation: fadeUp 0.9s 0.5s forwards;
}
.hero-title em {
  font-style: italic; color: #245f49;
}

.hero-sub {
  font-size: 1rem; font-weight: 400; letter-spacing: 0.04em;
  color: #193b30; max-width: min(620px, 92vw); line-height: 1.75;
  text-shadow: 0 2px 7px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(10, 38, 28, 0.3);
  margin: 0 auto 2.5rem;
  opacity: 0; animation: fadeUp 0.9s 0.7s forwards;
}

/* ─── SEARCH BOX ─── */
.search-box {
  background: var(--ivory);
  border: 1px solid rgba(34,54,47,0.08);
  box-shadow: 0 18px 38px rgba(34,54,47,0.13);
  border-radius: 14px;
  padding: 1.9rem;
  max-width: 1280px; width: min(92vw, 1280px);
  display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: flex-end;
  opacity: 0; animation: fadeUp 1s 0.9s forwards;
  position: relative;
}
.search-box::before {
  content: none;
}

.field-group {
  display: flex; flex-direction: column; gap: 0.45rem; flex: 1; min-width: 150px;
}
.field-label {
  font-size: 0.82rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--stone); font-weight: 500;
}
.field-label-required {
  color: var(--deep);
}
.required-marker,
.field-label-required > span[aria-hidden="true"] {
  color: #b42318;
}

.field-label-optional {
  color: rgba(67,86,80,0.7);
}
.search-helper {
  width: 100%;
  font-size: 0.9rem;
  color: var(--charcoal);
  margin-top: 1rem;
  margin-bottom: 0;
  line-height: 1.6;
}
.field-input {
  -webkit-appearance: none;
  appearance: none;
  background: var(--cream);
  border: 1px solid rgba(34,54,47,0.12);
  border-radius: 6px;
  color: var(--deep); padding: 0.95rem 1rem;
  font-family: var(--font-body); font-size: 1rem;
  outline: none; transition: border-color 0.3s;
  width: 100%;
  min-height: 56px;
}
.field-input::placeholder { color: var(--stone); opacity: 0.7; }
.field-input:focus { border-color: var(--sage); }
.field-input.input-invalid { border-color: #a54c4c; }
.field-input.input-invalid:focus { border-color: #a54c4c; }
.field-error-text {
  display: block;
  margin-top: 0.3rem;
  color: #a54c4c;
  font-size: 0.7rem;
  line-height: 1.4;
  min-height: 1em;
}

.field-select {
  -webkit-appearance: none;
  background: var(--cream);
  border: 1px solid rgba(34,54,47,0.12);
  border-radius: 6px;
  color: var(--deep); padding: 0.9rem 1rem;
  font-family: var(--font-body); font-size: 1rem;
  outline: none; cursor: pointer;
  appearance: none; width: 100%;
  min-height: 52px;
}
.field-select option { background: var(--ivory); color: var(--deep); }

.search-note {
  flex: 1 0 100%;
  margin: -0.1rem 0 0.2rem;
  color: var(--stone);
  font-size: 0.78rem;
  font-weight: 400;
  letter-spacing: 0.02em;
  text-align: left;
}

.search-btn {
  flex: 1 0 100%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 64px;
  padding: 0.95rem 2rem;
  background: #2f6648;
  border: none; color: var(--ivory);
  font-family: var(--font-heading);
  font-size: 1.18rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap; align-self: stretch;
  border-radius: 6px;
  transition: all 0.3s; position: relative; overflow: hidden;
}
.search-btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0); transition: background 0.3s;
}
.search-btn:hover::after { background: rgba(255,255,255,0.1); }

.search-btn-icon {
  width: 1.2rem;
  height: 1.2rem;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
}

.hero-hours {
  margin-top: 2rem;
  width: min(66vw, 940px);
  min-height: 78px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  background: rgba(255,255,255,0.72);
  border: 1px solid rgba(34,54,47,0.07);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(34,54,47,0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: var(--charcoal);
  text-align: left;
  opacity: 0; animation: fadeUp 1s 1.1s forwards;
}

.hours-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  justify-content: center;
  min-height: 78px;
  padding: 0.9rem 1.5rem;
}

.hours-item + .hours-item {
  border-left: 1px solid rgba(34,54,47,0.1);
}

.hours-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--deep);
  color: var(--ivory);
}

.hours-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hours-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.35;
}

.hours-copy strong {
  color: var(--deep);
  font-weight: 600;
}

.hours-copy span {
  color: var(--charcoal);
  font-size: 0.92rem;
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ─── DIVIDER ─── */
.divider {
  display: flex; align-items: center; gap: 1.5rem;
  padding: 4rem 2rem 0;
  max-width: 1280px; margin: 0 auto;
}
.divider-line { flex: 1; height: 1px; background: rgba(122,154,126,0.2); }
.divider-icon { color: var(--gold); font-size: 1.2rem; opacity: 0.6; }

.hero-section-divider {
  max-width: none;
  width: 100%;
  padding: 0;
  margin: 0;
}
.hero-section-divider .divider-line {
  background: rgba(77,131,168,0.22);
}

/* ─── SECTIONS ─── */
@media (max-width: 300px) {  /* Disabled - Mobile view same as desktop */
  nav {
    padding: 0.9rem 1.1rem;
  }

  .nav-logo {
    min-width: 0;
  }

  .nav-brand-img {
    height: 38px;
    flex: 0 0 auto;
  }

  .nav-brand-text {
    min-width: 0;
  }

  .brand-main {
    font-size: 0.95rem;
    line-height: 1.1;
    max-width: 68vw;
  }

  .brand-sub {
    font-size: 0.62rem;
  }

  .hero {
    min-height: auto;
    padding: 8.5rem 1rem 3rem;
    overflow: visible;
  }

  .hero-title {
    font-size: clamp(3rem, 16vw, 4.6rem);
    line-height: 1.02;
    margin-bottom: 0.9rem;
    overflow-wrap: break-word;
  }

  .hero-sub {
    max-width: 92vw;
    margin-bottom: 2rem;
    font-size: 0.84rem;
    line-height: 1.7;
  }

  .search-box {
    width: 100%;
    padding: 1.2rem;
    gap: 0.9rem;
    box-shadow: 0 12px 30px rgba(0,0,0,0.06);
  }

  .field-group {
    flex: 1 0 100%;
    min-width: 100%;
    text-align: left;
  }

  .field-label {
    font-size: 0.68rem;
    letter-spacing: 0.16em;
  }

  .field-input,
  .field-select {
    min-height: 52px;
    font-size: 16px;
    padding: 0.95rem 1rem;
    border-radius: 0;
  }

  .search-btn {
    min-height: 56px;
    padding: 1rem;
    font-size: 1rem;
    letter-spacing: 0.1em;
    white-space: normal;
  }

  .hero-hours {
    width: min(92vw, 420px);
    margin: 1rem auto 0;
    line-height: 1.7;
  }

  .split-section,
  .history-inner {
    grid-template-columns: 1fr;
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .visual-card {
    aspect-ratio: 4 / 3;
  }
}
@media (max-width: 300px) {  /* Disabled - Mobile view same as desktop */
  nav {
    padding: 0.75rem 0.9rem;
  }

  .nav-brand-img {
    height: 34px;
  }

  .brand-main {
    font-size: 0.82rem;
    max-width: 66vw;
  }

  .brand-sub {
    font-size: 0.55rem;
    letter-spacing: 0.14em;
  }

  .hero {
    padding-top: 7rem;
  }

  .hero-title {
    font-size: clamp(2.65rem, 15vw, 3.7rem);
  }

  .search-box {
    padding: 1rem;
  }

  .search-btn {
    font-size: 0.92rem;
  }
}
section { padding: 6rem 2rem; max-width: 1280px; margin: 0 auto; }

/* ─── MISSION / VISION TWO-COL ─── */
.split-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: center;
  padding: 5rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}

.section-tag {
  font-size: 0.62rem; letter-spacing: 0.3em; text-transform: uppercase;
  color: var(--gold); margin-bottom: 1rem;
  display: flex; align-items: center; gap: 0.75rem;
}
.section-tag::before {
  content: ''; width: 24px; height: 1px;
  background: var(--gold); display: inline-block;
}

.section-title {
  font-family: var(--font-heading);
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 400; line-height: 1.2;
  color: var(--deep); margin-bottom: 1.5rem;
}
.section-title em { font-style: italic; color: var(--sage-dark); }

.section-body {
  font-size: 0.88rem; font-weight: 400; line-height: 1.9;
  color: var(--charcoal); margin-bottom: 2rem;
}

.learn-btn {
  display: inline-flex; align-items: center; gap: 0.6rem;
  font-size: 0.68rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--sage-dark); text-decoration: none;
  border-bottom: 1px solid rgba(92,122,96,0.3);
  padding-bottom: 0.25rem;
  transition: all 0.3s; cursor: pointer; background: none; border-top: none; border-left: none; border-right: none; font-family: var(--font-body);
}
.learn-btn:hover { color: var(--deep); border-color: var(--deep); gap: 1rem; }

/* Visual card for right side */
.visual-card {
  position: relative; aspect-ratio: 4/3;
  overflow: hidden;
}
.visual-card-inner {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--charcoal), var(--deep));
  border: 1px solid rgba(122,154,126,0.2);
  display: flex; align-items: center; justify-content: center;
}

.botanical {
  width: 200px; height: 200px;
  opacity: 0.15;
  position: absolute;
}

.floating-stat {
  position: absolute;
  background: rgba(26,31,27,0.9);
  border: 1px solid rgba(184,150,62,0.3);
  padding: 1.2rem 1.5rem;
  backdrop-filter: blur(10px);
}
.floating-stat-num {
  font-family: var(--font-heading);
  font-size: 2.2rem; font-weight: 400;
  color: var(--gold-light);
  line-height: 1;
}
.floating-stat-label {
  font-size: 0.6rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--stone); margin-top: 0.25rem;
}
.stat-1 { bottom: 2rem; left: 1.5rem; }
.stat-2 { top: 2rem; right: 1.5rem; }

/* Dots decorative element */
.dots-decor {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px;
  opacity: 0.25;
}
.dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--sage);
}

/* ─── FULL-WIDTH HISTORY ─── */
.history-section {
  padding: 6rem 2rem;
  background: var(--cream);
  border-top: 1px solid rgba(77,131,168,0.16);
  border-bottom: 1px solid rgba(77,131,168,0.16);
  position: relative; overflow: hidden;
}
.history-section::before {
  content: 'EST. 1978';
  position: absolute; right: 3rem; top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-heading);
  font-size: 8rem; font-weight: 400;
  color: rgba(77,131,168,0.08);
  letter-spacing: 0.1em;
  pointer-events: none; white-space: nowrap;
}

.history-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr 2fr; gap: 3rem; align-items: start;
}

/* ─── FOOTER ─── */
footer {
  background: var(--deep);
  color: var(--ivory);
  border-top: 1px solid rgba(77,131,168,0.2);
  padding: 1.5rem 3rem;
}
.footer-top {
  max-width: 1280px; margin: 0 auto;
  display: flex; flex-direction: column; align-items: center; text-align: center;
  gap: 3rem; padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.4rem; font-weight: 400;
  color: var(--gold-light); margin-bottom: 1rem;
}
.footer-tagline {
  font-size: 0.78rem; font-weight: 400; line-height: 1.8;
  color: var(--stone); max-width: 260px; margin: 0 auto;
}

.footer-col-title {
  font-size: 0.62rem; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--sage-light); margin-bottom: 1.2rem;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 0.7rem; }
.footer-links a {
  font-size: 0.8rem; font-weight: 400; color: var(--stone);
  text-decoration: none; transition: color 0.3s;
}
.footer-links a:hover { color: var(--ivory); }

.footer-bottom {
  max-width: 1280px; margin: 0 auto;
  display: flex; justify-content: center; align-items: center; gap: 2rem;
  font-size: 0.72rem; color: rgba(107,116,104,0.6);
  letter-spacing: 0.06em;
}

.social-row {
  display: flex; justify-content: center; gap: 1rem; margin-top: 1.5rem;
}
.social-icon {
  width: 34px; height: 34px;
  border: 1px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center;
  color: var(--stone); transition: all 0.3s; cursor: pointer;
  font-size: 0.75rem;
}
.social-icon:hover { border-color: var(--sage); color: var(--sage-light); }

/* ─── SCROLL REVEAL ─── */
.reveal {
  opacity: 0; transform: translateY(30px);
  will-change: opacity, transform;
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
  will-change: auto;
}
.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ─── GENERIC PAGE STYLES ─── */
.page-header {
  padding: 10rem 2rem 4rem;
  background: var(--cream);
  text-align: center;
  border-bottom: 1px solid rgba(77,131,168,0.16);
  position: relative;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(77,131,168,0.1) 0%, transparent 70%);
  pointer-events: none;
}
.page-title {
  font-family: var(--font-heading);
  font-size: clamp(2.5rem, 6vw, 4rem);
  font-weight: 400; line-height: 1.1;
  color: var(--deep);
  position: relative;
}
.page-title em { font-style: italic; color: var(--sage-dark); }

.page-content {
  padding: 4rem 2rem;
  max-width: 1280px;
  margin: 0 auto;
}
.page-content h2 {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 400;
  color: var(--deep);
  margin-bottom: 1rem;
  margin-top: 2.5rem;
}
.page-content p {
  font-size: 0.9rem;
  line-height: 1.9;
  color: var(--charcoal);
  margin-bottom: 1rem;
}
.page-content a {
  color: var(--sage-dark);
  text-decoration: none;
  border-bottom: 1px solid var(--sage);
}
.page-content a:hover {
  color: var(--deep);
  border-color: var(--deep);
}
.page-content ul {
  list-style-position: inside;
  padding-left: 1rem;
  margin-bottom: 1rem;
}
.page-content li {
  margin-bottom: 0.5rem;
  line-height: 1.8;
  color: var(--charcoal);
}

/* ─── CONTACT PAGE ─── */
.contact-form {
  background: var(--ivory);
  border: 1px solid rgba(77,131,168,0.25);
  box-shadow: 0 15px 40px rgba(0,0,0,0.06);
  border-radius: 4px;
  padding: 2.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.contact-form .field-group { min-width: 100%; }
.contact-form textarea.field-input { min-height: 120px; resize: vertical; }
.contact-form .submit-btn {
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--sage-dark), var(--sage));
  border: none; color: var(--ivory);
  font-family: var(--font-body);
  font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase;
  cursor: pointer; align-self: flex-start; transition: all 0.3s;
}
.contact-form .submit-btn:hover { opacity: 0.9; }

.appointment-form {
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(77, 131, 168, 0.16);
  border-radius: 6px;
  gap: 0.85rem;
}

.appointment-modal-content {
  max-height: 88vh;
  padding: 2.5rem 2.25rem;
}

.appointment-form .field-group {
  min-width: 0;
}

.appointment-form .field-input,
.appointment-form .field-select {
  width: 100%;
  box-sizing: border-box;
}

.appointment-form textarea.field-input {
  min-height: 96px;
  line-height: 1.5;
}

.appointment-form .field-label {
  margin-bottom: 0.25rem;
  font-size: 0.74rem;
  letter-spacing: 0.12em;
  line-height: 1.35;
}

.appointment-form input[type="date"],
.appointment-form input[type="time"] {
  min-height: 2.8rem;
}

.appointment-form-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.8rem 1rem;
}

.appointment-field-help {
  display: block;
  margin-top: 0.3rem;
  color: var(--stone);
  font-size: 0.7rem;
  line-height: 1.4;
}

.appointment-submit-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.2rem;
  width: 100%;
  min-height: 2.8rem;
  padding: 0.75rem 1.25rem;
  border: 1px solid var(--deep);
  border-radius: 4px;
  background: var(--deep);
  color: #fff;
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease;
}

.appointment-submit-button:hover,
.appointment-submit-button:focus-visible {
  background: var(--sage-dark);
  transform: translateY(-1px);
}

/* ─── DECORATIVE LINE ─── */
.gold-bar {
  width: 3rem; height: 1px;
  background: linear-gradient(90deg, var(--gold), transparent);
  margin-bottom: 2rem;
}

/* ─── MODALS ─── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(44, 53, 45, 0.6);
  backdrop-filter: blur(5px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}
.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: var(--cream);
  padding: 3.5rem 3rem;
  max-width: 600px;
  width: 90%;
  border-radius: 6px;
  border: 1px solid rgba(77,131,168,0.25);
  box-shadow: 0 25px 50px rgba(0,0,0,0.15);
  position: relative;
  transform: translateY(20px);
  transition: transform 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}
.modal-overlay.active .modal-content {
  transform: translateY(0);
}
.modal-close {
  position: absolute; top: 1.5rem; right: 1.5rem; background: none; border: none;
  font-size: 1.2rem; color: var(--stone); cursor: pointer; transition: color 0.3s;
}
.modal-close:hover { color: var(--deep); }

@media (max-width: 560px) {
  .appointment-form-grid {
    grid-template-columns: 1fr;
  }

  .appointment-form {
    padding: 0.9rem;
  }

  .appointment-modal-content {
    padding: 2.25rem 1rem 1.25rem;
  }
}

/* History Modal - Timeline */
.timeline {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
  padding-left: 2.5rem;
  border-left: 2px solid var(--sage-light);
}
.timeline-item {
  position: relative;
}
.timeline-item::before {
  content: '';
  position: absolute;
  left: -2.5rem;
  top: 0.3rem;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--cream);
  border: 3px solid var(--sage);
  transform: translateX(-50%);
}
.timeline-year {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  font-weight: 600;
  color: var(--sage-dark);
  line-height: 1;
  margin-bottom: 0.75rem;
}
.timeline-content h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--deep);
  margin-bottom: 0.3rem;
  font-weight: 500;
}
.timeline-content p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--charcoal);
  margin: 0;
}
.timeline-content img {
  width: 100%;
  border-radius: 4px;
  margin-top: 1rem;
  box-shadow: 0 5px 15px rgba(0,0,0,0.08);
}

/* History Modal - Incorporators */
.incorporator-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 2.5rem 2rem;
  margin-top: 2.5rem;
}

.incorporator-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.incorporator-img {
  width: 80px;
  height: 80px;
  border-radius: 4px;
  object-fit: cover;
  object-position: center;
  background: var(--mist); /* Fallback for broken images */
  border: 1px solid rgba(77,131,168,0.2); /* Fallback for broken images */
  margin-bottom: 1rem;
}

.incorporator-name {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--charcoal);
  line-height: 1.5;
  font-weight: 500;
}

/* Mission Modal Elaboration */
.mission-points-container {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  margin-top: 1rem;
}

.mission-point {
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}

.mission-point .icon-wrapper {
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  background: var(--mist);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(77,131,168,0.2);
}

.mission-point svg {
  width: 24px;
  height: 24px;
  stroke: var(--sage-dark);
  stroke-width: 1.5;
}

.mission-point h3 {
  font-family: var(--font-heading);
  font-size: 1.3rem;
  color: var(--deep);
  margin-bottom: 0.3rem;
  font-weight: 500;
}

.mission-point p {
  font-size: 0.85rem;
  line-height: 1.8;
  color: var(--charcoal);
  margin: 0;
}

/* ─── GPS BAR (MAP PAGE) ─── */
.gps-bar {
  padding: 1.2rem 1.5rem;
  background: var(--mist);
  border-left: 4px solid var(--sage-dark);
  border-radius: 0 4px 4px 0;
  margin-top: 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.gps-info {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.gps-icon {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  background: var(--sage);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gps-icon svg {
  width: 22px;
  height: 22px;
  color: var(--ivory);
}

.gps-text {
  display: flex;
  flex-direction: column;
}

.gps-main-instruction {
  font-size: 0.7rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--stone);
}

.gps-sub-location {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  color: var(--deep);
  font-weight: 500;
  line-height: 1.2;
}

/* ─── AR VIEW MODAL ─── */
.ar-modal {
  /* Fallback background if camera fails */
  background: url('../../assets/helpdesk.jpg') center/cover no-repeat;
  padding: 0;
}

#ar-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.ar-overlay-tint {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(44, 53, 45, 0.5), rgba(44, 53, 45, 0.8));
  backdrop-filter: blur(3px);
  z-index: 2;
}

.ar-ui {
  position: relative;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  perspective: 400px;
  z-index: 3;
}

.ar-destination {
  position: absolute;
  top: 3rem;
  background: rgba(44, 53, 45, 0.8);
  backdrop-filter: blur(15px);
  border: 1px solid rgba(77,131,168,0.35);
  padding: 1rem 2rem;
  border-radius: 4px;
  text-align: center;
  color: var(--ivory);
  animation: fadeUp 0.5s ease;
}

.ar-dest-label {
  font-size: 0.6rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold);
  display: block;
  margin-bottom: 0.25rem;
}

.ar-dest-location {
  font-family: var(--font-heading);
  font-size: 1.3rem;
}

.ar-instruction {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 1.5rem 2.5rem;
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
  border: 1px solid rgba(77,131,168,0.25);
  animation: fadeUp 0.8s 0.2s ease forwards;
  opacity: 0;
}

.ar-icon svg {
  width: 50px;
  height: 50px;
  color: var(--sage-dark);
  animation: arBounce 2s infinite ease-in-out;
}

@keyframes arBounce {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.ar-text {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.ar-action {
  font-family: var(--font-heading);
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--deep);
  line-height: 1;
}

.ar-distance {
  font-size: 1rem;
  color: var(--charcoal);
}

.ar-path {
  position: absolute;
  bottom: 0;
  width: 300px;
  height: 60%;
  border-left: 8px dashed rgba(255,255,255,0.4);
  border-right: 8px dashed rgba(255,255,255,0.4);
  transform: rotateX(75deg);
  transform-origin: bottom center;
  opacity: 0.5;
}

.ar-close-btn {
  position: absolute;
  bottom: 2rem;
  background: rgba(44, 53, 45, 0.8);
  border: 1px solid rgba(255,255,255,0.3);
  color: var(--ivory);
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 0.7rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.ar-close-btn:hover {
  background: var(--ivory);
  color: var(--deep);
}

@supports (-webkit-touch-callout: none) {
  html {
    -webkit-text-size-adjust: 100%;
  }

  body {
    min-height: -webkit-fill-available;
  }

  select,
  input,
  button {
    -webkit-tap-highlight-color: rgba(63,111,88,0.16);
  }
}

@media (max-width: 300px) {  /* Disabled - Mobile view same as desktop */
  nav {
    padding-top: max(0.9rem, env(safe-area-inset-top));
    padding-left: max(1.1rem, env(safe-area-inset-left));
    padding-right: max(1.1rem, env(safe-area-inset-right));
  }

  .hero {
    min-height: auto;
    padding: 8.5rem 1rem 3rem;
    overflow: visible;
  }

  .hero-title {
    font-size: clamp(3rem, 16vw, 4.6rem);
    line-height: 1.02;
    overflow-wrap: break-word;
  }

  .search-box {
    width: 100%;
    padding: 1.2rem;
    gap: 0.9rem;
  }

  .field-group {
    flex: 1 0 100%;
    min-width: 100%;
    text-align: left;
  }

  .field-input,
  .field-select {
    min-height: 52px;
    font-size: 16px;
    border-radius: 0;
  }

  .search-btn {
    min-height: 56px;
    white-space: normal;
  }

  .split-section,
  .history-inner {
    grid-template-columns: 1fr;
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

@media (max-width: 480px) {
  nav {
    min-height: 76px;
    padding: 0.75rem 1rem;
  }

  .brand-main {
    font-size: 0.82rem;
    line-height: 1.12;
    max-width: 68vw;
  }

  .nav-brand-img {
    height: 38px;
  }

  .hero {
    padding: 7rem 1rem 2.5rem;
    min-height: auto;
  }

  .hero-title {
    font-size: clamp(2.85rem, 14vw, 3.7rem);
  }

  .search-box {
    padding: 1rem;
    width: 100%;
    border-radius: 12px;
  }

  .field-group {
    flex-basis: 100%;
    min-width: 100%;
    text-align: left;
  }

  .search-btn {
    font-size: 0.95rem;
    letter-spacing: 0.1em;
    white-space: normal;
  }

  .hero-hours {
    width: 100%;
    grid-template-columns: 1fr;
    margin-top: 1.2rem;
  }

  .hours-item {
    justify-content: flex-start;
    min-height: 70px;
  }

  .hours-item + .hours-item {
    border-left: 0;
    border-top: 1px solid rgba(34,54,47,0.1);
  }
}

/* Shared tablet and phone layout rules for the visitor pages. */
@media (max-width: 900px) {
  nav {
    padding: .75rem 1.25rem;
  }

  .nav-logo,
  .nav-brand-text {
    min-width: 0;
  }

  .brand-main {
    overflow-wrap: anywhere;
  }

  .hero {
    min-height: auto;
  }

  .split-section,
  .history-inner {
    grid-template-columns: 1fr;
  }

  .visual-card {
    order: -1;
  }
}

@media (max-width: 600px) {
  nav {
    min-height: 70px;
    padding: .65rem .85rem;
  }

  .nav-brand-img {
    height: 34px;
  }

  .nav-brand-text {
    max-width: 12rem;
  }

  .brand-main {
    font-size: .78rem;
    line-height: 1.05;
  }

  .brand-sub {
    font-size: .58rem;
  }

  .hero {
    padding: 7rem .85rem 2.5rem;
  }

  .hero-title {
    font-size: clamp(2.7rem, 13vw, 4rem);
  }

  .search-box {
    width: 100%;
    padding: 1rem;
  }

  .field-group {
    flex-basis: 100%;
    min-width: 100%;
  }

  .field-input,
  .field-select,
  .search-btn {
    min-height: 50px;
    font-size: 16px;
  }

  .hero-hours {
    grid-template-columns: 1fr;
    width: 100%;
  }

  .hours-item + .hours-item {
    border-left: 0;
    border-top: 1px solid rgba(34,54,47,0.1);
  }

  section,
  .split-section,
  .history-inner {
    padding-left: .85rem;
    padding-right: .85rem;
  }
}

@media (max-width: 300px) {  /* Disabled - Mobile view same as desktop */
  .particle {
    animation-duration: 18s !important;
    opacity: 0.16 !important;
  }

  .hero-title,
  .hero-sub,
  .search-box,
  .hero-hours {
    animation-duration: 0.65s;
  }

  .reveal {
    transform: translateY(18px);
    transition-duration: 0.55s;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }

  .particle {
    display: none;
  }

  .hero-title,
  .hero-sub,
  .search-box,
  .hero-hours,
  .reveal {
    opacity: 1 !important;
    transform: none !important;
  }
}
